= header_tag('终端详细')

.row
  .form-horizontal
    .form-group
      = label_tag :code, '编码', class: 'control-label col-md-2'
      %p.form-control-static
        = @machine.code
    .form-group
      = label_tag :name, '姓名', class: 'control-label col-md-2'
      %p.form-control-static
        = @machine.name
    .form-group
      = label_tag :cell_num, '机柜数量', class: 'control-label col-md-2'
      %p.form-control-static
        = @machine.cell_num
    .form-group
      = label_tag :position, '位置', class: 'control-label col-md-2'
      %p.form-control-static
        = @machine.position
    .form-group
      = label_tag :memo, '备注', class: 'control-label col-md-2'
      %p.form-control-static
        = @machine.memo

= link_to '编辑', edit_cpanel_machine_path(@machine), class: "btn btn-outline btn-primary"
\|
= link_to '终端列表', cpanel_machines_path, class: "btn btn-outline btn-primary"
